package org.elanfox.intellicommunity.biz.entity.msg;

import lombok.Getter;
import lombok.Setter;

import javax.persistence.Cacheable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 设备定位消息表
 * redis存下最近一条消息，或者全部存redis（当天的轨迹）
 *
 * @author allan
 * @version 1.0.0
 * @date 2019/12/18
 */
@Entity
@Table(name = "ic_location_msg")
@Setter
@Getter
@Cacheable(false)
public class LocationMsgPO extends MsgBasePO {
    /**
     * 上一条消息id
     */
    @Column(name = "last_msg_id")
    private Long lastMsgId;

    /**
     * 是否最新定位消息
     */
    @Column(name = "is_latest")
    private boolean latest;
}
